package com.youkeda.test.j3.c3;

/**
 * @author xshuai
 */
public class Addition implements Runnable {
    private int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Addition(int count) {
        this.count = count;
    }

    @Override
    public synchronized void run() {
        while (count > 0) {
            System.out.println(count);
            count--;
        }
    }
}
